// server/api/test.ts
export default defineEventHandler(() => {
  const config = useRuntimeConfig()

  return {
    environment: process.env.NODE_ENV,
    dbHost: config.databaseUrl?.split('@')[1], // 不暴露密码
    apiBase: config.public.apiBase
  }
})